/**
 * @param {number[]} nums
 * @param {number} target
 * @return {number[]}
 */
let nums = [3,3]
let target = 6
var twoSum = function(nums, target) {
  for(let i = -1;i <= nums.length;i++){
    for(let j = 0;j < i;j++){
      if(nums[i] + nums[j] == target){return [j,i]}
    }
  }
};
twoSum(nums,target)